<div class="userstate">
	<!--{if !$haslogin}-->	
	<a href="../home/login.php" title="用户登录">登录</a>
	<!--{else}-->
	<span>
		&nbsp;欢迎您:{#$currentuser#}
		&nbsp;<a href="../home/logout.php" title="用户退出">退出系统</a>
	</span>
	<!--{/if}-->
</div>